package view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JButton;

@SuppressWarnings("serial")
public class PanelKundenAuswaehlen extends JPanel {
	private JTable table;
	String[] columnNames = { "First Name", "Last Name", "Sport",
			"# of Years", "Vegetarian" };

	Object[][] rowData = {
			{ "Kathy", "Smith", "Snowboarding", new Integer(5),
					new Boolean(false) },
			{ "John", "Doe", "Rowing", new Integer(3), new Boolean(true) },
			{ "Sue", "Black", "Knitting", new Integer(2),
					new Boolean(false) },
			{ "Jane", "White", "Speed reading", new Integer(20),
					new Boolean(true) },
			{ "Joe", "Brown", "Pool", new Integer(10), new Boolean(false) } };
	public PanelKundenAuswaehlen() {
		setLayout(null);
		
		table = new JTable(rowData, columnNames);
		table.setBounds(30, 50, 522, 216);
		add(table);
		
		JButton btnKundeAuswhlen = new JButton("Kunde ausw\u00E4hlen");
		btnKundeAuswhlen.setBounds(30, 286, 117, 23);
		add(btnKundeAuswhlen);
		btnKundeAuswhlen.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
		
		JButton btnAbbrechen = new JButton("Abbrechen");
		btnAbbrechen.setBounds(410, 286, 89, 23);
		add(btnAbbrechen);
		btnAbbrechen.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
		
		JButton btnReservierungBuchenUnd = new JButton("Reservierung buchen und Vertrag erstellen");
		btnReservierungBuchenUnd.setBounds(153, 286, 247, 23);
		add(btnReservierungBuchenUnd);
		btnReservierungBuchenUnd.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
	}

}